package com.zenika.zentracker.hibernate.info;

import java.util.ArrayList;
import java.util.List;

public class CollectionActivity {

    private List activityList = new ArrayList();
    
    public CollectionActivity(CollectionInformation information) {
        this.activityList.add(information);
    }
    
    public boolean add(CollectionInformation information) {
        return activityList.add(information);
    }

    public List collectionInfos() {
        return activityList;
    }
    
    public String toString() {
        StringBuffer buffer = new StringBuffer();
        
        for (int i = 0; i < activityList.size(); i++) {
            buffer.append(activityList.get(i).toString()+"\n");
        }

        return buffer.toString();
    }

    
}
